﻿using BLL;
using Newtonsoft.Json.Linq;
using System;

namespace Thksoft.UserCotrols
{
    public partial class CtrlWeekDepartment2 : System.Web.UI.UserControl
    {
        protected void Page_Load(object sender, EventArgs e)
        {
            QS_PLANWEEK_DEPARTMENTBLL planYearDepartmentBll = new QS_PLANWEEK_DEPARTMENTBLL();
            //BUSINESS_ID 转 ApplayId
            QS_PLANWEEKAPPLYBLL planYearApplyBll = new QS_PLANWEEKAPPLYBLL();
            var bid = Request.Params.Get("BusinessId");
            var applay = planYearApplyBll.FindByBuid(Convert.ToInt32(bid));
            ApplyId = applay.N_WEEKAPP_ID.ToString();
            Model = planYearDepartmentBll.GetDataByApplyId((int)applay.N_WEEKAPP_ID);
        }

        public JArray Model = null;

        protected void ReLoadBtn_Click(object sender, EventArgs e)
        {
        }

        public string ApplyId;
    }
}